package containerconfig

import (
	"fmt"
	"path/filepath"

	"gitee.com/chuanjinge/go-container/config"
)

const CONFIG_V2_LOG = "config.v2.json"
const RUN_LOG_SUFFIX = "-common.log"

func GetRunLogPath(containerId string) string {
	filename := fmt.Sprintf("%s%s", containerId, RUN_LOG_SUFFIX)
	return filepath.Join(config.GlobalConfig().ContainerPath, containerId, filename)
}

func GetConfigLog(containerId string) string {
	return filepath.Join(config.GlobalConfig().ContainerPath, containerId, CONFIG_V2_LOG)
}
